package com.qst.system.service.impl;

import com.qst.system.domain.vo.OverdueVo;
import com.qst.system.mapper.OverdueMapper;
import com.qst.system.service.IOverdueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OverdueServiceImpl implements IOverdueService {


    @Autowired
    private OverdueMapper overdueMapper;

    @Override
    public List<OverdueVo> selectOverdueList(OverdueVo overdueVo) {
        return overdueMapper.selectOverdueList(overdueVo);
    }

    @Override
    public OverdueVo selectOverdueById(Long id) {
        return overdueMapper.selectOverdueById(id);
    }

    @Override
    public int insertOverdue(OverdueVo overdue) {
        return overdueMapper.insertOverdue(overdue);
    }

    @Override
    public int updateOverdue(OverdueVo overdue) {
        return overdueMapper.updateOverdue(overdue);
    }

    @Override
    public int deleteOverdueById(Long id) {
        return overdueMapper.deleteOverdueById(id);
    }

    @Override
    public int deleteOverdueByIds(Long[] ids) {
        return overdueMapper.deleteOverdueByIds(ids);
    }
}
